import request from '@/utils/request'



export function wholeHoseList(data) { //整串软管管理-列表
  return request({
    url: '/hose-management/api/wholeString/page',
    method: 'post',
    data
  })
}


export function wholeHoseAdd(data) { //整串软管管理-新增
  return request({
    url: '/hose-management/api/wholeString/save',
    method: 'post',
    data
  })
}

//原 put
export function wholeHoseEdit(data) { //整串软管管理-编辑
  return request({
    url: '/hose-management/api/wholeString/put/update',
    method: 'post',
    data
  })
}

//原 del 
export function wholeHoseDelete(data) { //整串软管管理-删除
  return request({
    url: '/hose-management/api/wholeString/del/delete' ,
    method: 'post',
    data,
  })
}


export function wholeHoseDetail(id) { //整串软管管理-详情
  return request({
    url: '/hose-management/api/wholeString/' + id,
    method: 'get',
  })
}
export function wholeHoseFpso(data) { //整串软管管理-fpso
  return request({
    url: '/project-quality/api/facility/get/list' ,
    method: 'POST',
    data,
  })
}
export function wholeHoseExport(data) { //整串软管管理-导出
  return request({
    url: '/hose-management/api/wholeString/export' ,
    responseType: 'arraybuffer',
    method: 'POST',
    data,
  })
}
//原 put
export function wholeHoseSetHose(data) { //整串软管管理-设置软管
  return request({
    url: '/hose-management/api/wholeString/put/setupHsoe' ,
    method: 'post',
    data,
  })
}
export function wholeHoseNouse(data) { //整串软管管理-未使用
  return request({
    url: '/hose-management/api/hose/base/page/no-use' ,
    method: 'post',
    data,
  })
}
